package com.javaspeak.concurrency.nio.niolet.server;

import java.nio.ByteBuffer;
import java.nio.channels.SelectionKey;

/**
 * @author John Dickerson
 */
public class Message {

    private ByteBuffer messageByteBuffer;
    private SelectionKey selectionKey;


    public Message(
            ByteBuffer messageByteBuffer, SelectionKey selectionKey ){

        this.messageByteBuffer = messageByteBuffer;
        this.selectionKey = selectionKey;
    }


    public ByteBuffer getMessageByteBuffer() {

        return messageByteBuffer;
    }


    public SelectionKey getSelectionKey() {

        return selectionKey;
    }
}
